import Request from "../../../utils/request.js";
export default class {  
  //查询所选城市下房源
  static areAddressGet(params) {
    return Request({
      url: "app/address/queryAllAddress",
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  //查询所选城市下房源
  static houseByCity(params) {
    return Request({
      url: 'app/home/queryHomeByCityCode/'+params,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  //获取定位
  static locationGet(params) {
    return Request({
      url: 'app/address/getGeocoderCity',
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }
} 